#include <iostream>
using namespace std;
int main ()
{
    string a;
    cout<<"ingrese la palabra"<<endl;
    cin>>a;
    while (a!="salir")
    {
        cout<< a.length()<<endl;
        cin >> a;
    }

    return 1;
}
